# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=accounts-qml-module
pkgver=0.7_git20190605
pkgrel=0
_commit="69e17dec5add40655cd9334ec7ad4eef13fed8a4"
arch="all"
url="https://gitlab.com/accounts-sso/accounts-qml-module"
pkgdesc="QML bindings for libaccounts-qt + libsignon-qt"
license="LGPL-2.1-only"
makedepends="qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qttools-dev libaccounts-qt-dev signond-dev qtchooser"
checkdepends="xvfb-run dbus-test-runner"
#source="https://gitlab.com/accounts-sso/accounts-qml-module/-/archive/VERSION_$pkgver/accounts-qml-module-VERSION_$pkgver.tar.gz"
source="$pkgname-$_commit.tar.gz::https://gitlab.com/accounts-sso/accounts-qml-module/-/archive/$_commit.tar.gz"
builddir="$srcdir/$pkgname-$_commit"

build() {
	qmake-qt5 \
		PREFIX=/usr \
		LIBDIR=/usr/lib \
		CONFIG+=no_docs
	make
}

check() {
	make check
}

package() {
	INSTALL_ROOT="$pkgdir" make install
}

sha512sums="fd74f6e050d82586e04af1a29e6802c83559de0201f195c122b378051fcd86ecd02f057cbf1cfb1b9e42bcbbbb697e06d74df24ee32ef84cbff1b5d688db3802  accounts-qml-module-69e17dec5add40655cd9334ec7ad4eef13fed8a4.tar.gz"
